<!-- INCLUDE overall_header.html -->

<a name="maincontent"></a>

<!-- IF S_EDIT -->

	<a href="{U_BACK}" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>

	<script type="text/javascript">
	// <![CDATA[
		function update_icon(new_icon)
		{
			document.getElementById('current_icon').src = (new_icon) ? "{ICONS_PATH}/" + encodeURI(new_icon) : "./images/spacer.gif";
		}
	// ]]>
	</script>

	<script type="text/javascript">
	// <![CDATA[

		var form_name = 'acp_express_pages';
		var text_name = 'page_content';

		// Define the bbCode tags
		var bbcode = new Array();
		var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
		var imageTag = false;

		// Helpline messages
		var help_line = {
			b: '{LA_BBCODE_B_HELP}',
			i: '{LA_BBCODE_I_HELP}',
			u: '{LA_BBCODE_U_HELP}',
			q: '{LA_BBCODE_Q_HELP}',
			c: '{LA_BBCODE_C_HELP}',
			l: '{LA_BBCODE_L_HELP}',
			o: '{LA_BBCODE_O_HELP}',
			p: '{LA_BBCODE_P_HELP}',
			w: '{LA_BBCODE_W_HELP}',
			s: '{LA_BBCODE_S_HELP}',
			f: '{LA_BBCODE_F_HELP}',
			e: '{LA_BBCODE_E_HELP}',
			d: '{LA_BBCODE_D_HELP}',
			t: '{LA_BBCODE_T_HELP}',
			tip: '{L_STYLES_TIP}'
			<!-- BEGIN custom_tags -->
				,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
			<!-- END custom_tags -->
		}

	// ]]>
	</script>
	<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>

	<h1>{L_ACP_EXPRESS_PAGES}</h1>
	<p>{L_ACP_EXPRESS_PAGES_EXPLAIN}</p>

	<form id="acp_express_pages" method="post" action="{U_ACTION}">

	<fieldset>
		<legend>{L_ACP_EXPRESS_PAGES}</legend>
	<dl>
		<dt><label for="page_basename">{L_PAGE_BASENAME}:</label><br />
		<span>{L_PAGE_BASENAME_EXPLAIN}</span></dt>
		<dd><input name="page_basename" type="text" id="page_basename" value="{PAGE_BASENAME}" maxlength="40" /></dd>
	</dl>
	<dl>
		<dt><label for="page_name">{L_PAGE_NAME}:</label><br />
		<span>{L_PAGE_NAME_EXPLAIN}</span></dt>
		<dd><input name="page_name" type="text" id="page_name" value="{PAGE_NAME}" maxlength="255" /></dd>
	</dl>
	<dl>
		<dt><label for="page_icon">{L_PAGE_ICON}:</label><br />
		<span>{L_PAGE_ICON_EXPLAIN}</span></dt>
		<dd><select name="page_icon" id="page_icon" onchange="update_icon(this.options[selectedIndex].value);">{S_ICON_FILENAME_LIST}</select></dd>
		<dd><img src="{PAGE_ICON}" id="current_icon" alt="" /></dd>
	</dl>
	<dl>
		<dt><label for="page_custom">{L_PAGE_TYPE}:</label></dt>
		<dd><!-- IF S_CUSTOM_PAGE --><label><input onchange="dE('text', 1); dE('file', -1);" type="radio" class="radio" name="page_custom" value="1" id="page_custom" checked="checked" />{L_PAGE_TYPE_CUSTOM}</label><!-- ENDIF -->
			<!-- IF not S_CUSTOM_PAGE --><label><input onchange="dE('text', -1); dE('file', 1);" type="radio" class="radio" name="page_custom" value="0" checked="checked" /> {L_PAGE_TYPE_FILE}</label><!-- ENDIF --></dd>
	</dl>
	<!-- IF not S_CUSTOM_PAGE --><div id="text" style="display: none;"><!-- ELSE --><div id="text"><!-- ENDIF -->
	<!-- IF PAGE_CONTENT_PREVIEW -->
	<dl>
		<dt><label>{L_PREVIEW}:</label></dt>
		<dd>{PAGE_CONTENT_PREVIEW}</dd>
	</dl>
	<!-- ENDIF -->
	<dl>
		<dt><label for="page_content">{L_PAGE_CONTENT}:</label><br />
		<span>{L_PAGE_CONTENT_EXPLAIN}</span>
			<div id="format-buttons">
			<!-- // MOD : ABBC3 (V1.0.9) - Start -->
		<!-- IF S_ABBC3_MOD -->
			<!-- INCLUDE posting_abbcode_buttons.html -->
		
		<!-- ELSE -->
			{L_FONT_SIZE}: <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_FONT_SIZE}" onmouseover="helpline('f')" onmouseout="helpline('tip')">
				<option value="50">{L_FONT_TINY}</option>
				<option value="85">{L_FONT_SMALL}</option>
				<option value="100" selected="selected">{L_FONT_NORMAL}</option>
				<option value="150">{L_FONT_LARGE}</option>
				<option value="200">{L_FONT_HUGE}</option>
			</select>

			<br /><br />

			<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
			<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />

			<!-- IF .custom_tags -->
				<!-- BEGIN custom_tags -->
					<!-- IF custom_tags.BBCODE_HELPLINE !== '' --><input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')" /><!-- ENDIF -->
				<!-- END custom_tags -->
			<!-- ENDIF -->

			<p><input type="text" class="text full" style="border: 0; background: none;" name="helpbox" value="{L_STYLES_TIP}" /></p>
<!-- ENDIF -->
		<!-- // MOD : ABBC3 (V1.0.9) - End -->
			<script type="text/javascript">
			// <![CDATA[
				colorPalette('h', 12, 10);
			// ]]>
			</script>

			</div>
		</dt>
		<dd><textarea id="page_content" name="page_content" rows="30" cols="45">{PAGE_CONTENT}</textarea></dd>
		<dd><!-- IF S_CONTENT_BBCODE_CHECKED --><label><input type="checkbox" class="radio" name="content_parse_bbcode" checked="checked" /> {L_PARSE_BBCODE}</label><!-- ENDIF -->
			<!-- IF S_CONTENT_SMILIES_CHECKED --><label><input type="checkbox" class="radio" name="content_parse_smilies" checked="checked" /> {L_PARSE_SMILIES}</label><!-- ENDIF -->
			<!-- IF S_CONTENT_URLS_CHECKED --><label><input type="checkbox" class="radio" name="content_parse_urls" checked="checked"/> {L_PARSE_URLS}</label><!-- ENDIF --></dd></div>
	</dl>
	</div>
	<!-- IF S_CUSTOM_PAGE --><div id="file" style="display: none;"/><!-- ENDIF -->
	<dl>
		<dt><label for="template_file">{L_PAGE_HTML}:</label><br />
		<span>{L_PAGE_HTML_EXPLAIN}</span></dt>
		<dd><select name="template_file" id="template_file">{S_HTML_FILENAME_LIST}</select></dd>
	</dl>
	<dl>
		<dt><label for="language_file">{L_PAGE_LANG}:</label><br />
		<span>{L_PAGE_LANG_EXPLAIN}</span></dt>
		<dd><select name="language_file" id="language_file">{S_LANG_FILENAME_LIST}</select></dd>
	</dl>
	</div>

	<p class="submit-buttons">
		<input type="hidden" name="action" value="save" />

		<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
		<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
		{S_FORM_TOKEN}
	</p>
	</fieldset>
	</form>

<!-- ELSE -->

	<h1>{L_ACP_EXPRESS_PAGES}</h1>
	<p>{L_ACP_EXPRESS_PAGES_EXPLAIN}</p>

	<form id="acp_express_pages" method="post" action="{U_ACTION}">
	<fieldset class="tabulated">
	<legend>{L_ACP_EXPRESS_PAGES}</legend>

	<p class="quick">
		<input class="button2" name="add" type="submit" value="{L_ADD_PAGE}" />
	</p>

	<table cellspacing="1">
	<thead>
	<tr>
		<th>{L_PAGE_ICON}</th>
		<th>{L_PAGE_BASENAME}</th>
		<th>{L_PAGE_VIEWS}</th>
		<th>{L_ACTION}</th>
	</tr>
	</thead>
	<tbody>
	<!-- BEGIN pages -->
		<!-- IF pages.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
		<td style="text-align: center;"><!-- IF pages.S_PAGE_ICON --><img src="{pages.PAGE_ICON}" alt="{pages.PAGE_BASENAME}" title="{pages.PAGE_BASENAME}" /><!-- ELSE -->&nbsp; - &nbsp;<!-- ENDIF --></td>
		<td style="text-align: center;">{pages.PAGE_BASENAME}</td>
		<td style="text-align: center;">{pages.PAGE_VIEWS}</td>
		<td style="text-align: center;">
			<!-- IF pages.S_FIRST_ROW -->{ICON_MOVE_UP_DISABLED}<!-- ELSE --><a href="{pages.U_MOVE_UP}">{ICON_MOVE_UP}</a><!-- ENDIF -->&nbsp;
			<!-- IF pages.S_LAST_ROW -->{ICON_MOVE_DOWN_DISABLED}<!-- ELSE --><a href="{pages.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a><!-- ENDIF -->&nbsp;
			<a href="{pages.U_EDIT}">{ICON_EDIT}</a> <a href="{pages.U_DELETE}">{ICON_DELETE}</a>
		</td>
	</tr>
	<!-- END pages -->
	</tbody>
	</table>

	{S_FORM_TOKEN}
	</fieldset>
	</form>

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->